<template>
  <div>
    <h2>我是子组件</h2>
    <!-- <h4>我现在有 {{value}}钱</h4> -->

    <!-- <button @click="$emit('input',value+1)">打工搬砖</button> -->
  </div>
</template>

<script>
export default {
  name: 'MySon',
  props: {
    value:Number,
  },
  methods:{
    myList(){
      console.log(1);
    },
    // fn(){
    //     this.$emit('input',this.value+1)
    // },
  },
}
</script>

<style scoped></style>